package com.woniuxy.cloud.boss2.boss2assembly.api;

import com.woniu.cloud.movie.api.MovieApi;
import com.woniuxy.cloud.boss2.api.FunctionApi;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
public class FunctionApiImpl implements FunctionApi {
    @Autowired
    private MovieApi movieApi;

    @Override
    public String gogogo(Integer id) {
        log.info("计数器：{}",id);
        movieApi.hahaha(id+1);
        return "我是BOSS";
    }
}
